  /**
   * Generate time : 2016-04-13 11:34:49
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGAccident 
 * table comment : 生产事故记录 
 */
public class ZMCGAccident extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdMiningId = " ";		/* 矿井id*/
	private String fdWorknumId = " ";		/* 生产班次*/
	private String fdStatus = " ";		/* 状态*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private String fdReportTime = " ";		/* 汇报时间*/
	private String fdReportPerson = " ";		/* 汇报人*/
	private String fdHappenTime = " ";		/* 发生时间*/
	private String fdDepartmentId = " ";		/* 责任单位ID*/
	private String fdDepartment = " ";		/* 责任单位*/
	private String fdProblemPlace = " ";		/* 发生地点*/
	private String fdAccidentContent = " ";		/* 事故内容*/
	private String fdOverTime = " ";		/* 处理好时间*/
	private String fdOffTime = " ";		/* 中断生产时间*/
	private String fdAccidentAffect = " ";		/* 事故影响*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
	EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorknumId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产班次");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHappenTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("发生时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("责任单位ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("责任单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProblemPlace");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("发生地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAccidentContent");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("事故内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOverTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("处理好时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOffTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("中断生产时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAccidentAffect");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("事故影响");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCGAccident() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdMiningId - 矿井id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdWorknumId - 生产班次
	 * @return the fdWorknumId
	 */
	public String getFdWorknumId() {
		return this.fdWorknumId;
	}
	
	/**
	 * set the fdWorknumId - 生产班次
	 */
	public void setFdWorknumId(String fdWorknumId) {
		this.fdWorknumId = fdWorknumId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the fdReportPerson - 汇报人
	 * @return the fdReportPerson
	 */
	public String getFdReportPerson() {
		return this.fdReportPerson;
	}
	
	/**
	 * set the fdReportPerson - 汇报人
	 */
	public void setFdReportPerson(String fdReportPerson) {
		this.fdReportPerson = fdReportPerson;
	}
	/**
	 * get the fdHappenTime - 发生时间
	 * @return the fdHappenTime
	 */
	public String getFdHappenTime() {
		return this.fdHappenTime;
	}
	
	/**
	 * set the fdHappenTime - 发生时间
	 */
	public void setFdHappenTime(String fdHappenTime) {
		this.fdHappenTime = fdHappenTime;
	}
	/**
	 * get the fdDepartmentId - 责任单位ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 责任单位ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	/**
	 * get the fdDepartment - 责任单位
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 责任单位
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdProblemPlace - 发生地点
	 * @return the fdProblemPlace
	 */
	public String getFdProblemPlace() {
		return this.fdProblemPlace;
	}
	
	/**
	 * set the fdProblemPlace - 发生地点
	 */
	public void setFdProblemPlace(String fdProblemPlace) {
		this.fdProblemPlace = fdProblemPlace;
	}
	/**
	 * get the fdAccidentContent - 事故内容
	 * @return the fdAccidentContent
	 */
	public String getFdAccidentContent() {
		return this.fdAccidentContent;
	}
	
	/**
	 * set the fdAccidentContent - 事故内容
	 */
	public void setFdAccidentContent(String fdAccidentContent) {
		this.fdAccidentContent = fdAccidentContent;
	}
	/**
	 * get the fdOverTime - 处理好时间
	 * @return the fdOverTime
	 */
	public String getFdOverTime() {
		return this.fdOverTime;
	}
	
	/**
	 * set the fdOverTime - 处理好时间
	 */
	public void setFdOverTime(String fdOverTime) {
		this.fdOverTime = fdOverTime;
	}
	/**
	 * get the fdOffTime - 中断生产时间
	 * @return the fdOffTime
	 */
	public String getFdOffTime() {
		return this.fdOffTime;
	}
	
	/**
	 * set the fdOffTime - 中断生产时间
	 */
	public void setFdOffTime(String fdOffTime) {
		this.fdOffTime = fdOffTime;
	}
	/**
	 * get the fdAccidentAffect - 事故影响
	 * @return the fdAccidentAffect
	 */
	public String getFdAccidentAffect() {
		return this.fdAccidentAffect;
	}
	
	/**
	 * set the fdAccidentAffect - 事故影响
	 */
	public void setFdAccidentAffect(String fdAccidentAffect) {
		this.fdAccidentAffect = fdAccidentAffect;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdWorknumId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknumId")), fdWorknumId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdReportPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPerson")), fdReportPerson));
		setFdHappenTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHappenTime")), fdHappenTime));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdProblemPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemPlace")), fdProblemPlace));
		setFdAccidentContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAccidentContent")), fdAccidentContent));
		setFdOverTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOverTime")), fdOverTime));
		setFdOffTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOffTime")), fdOffTime));
		setFdAccidentAffect(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAccidentAffect")), fdAccidentAffect));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdWorknumId",StringUtils.toString(fdWorknumId, eiMetadata.getMeta("fdWorknumId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			map.put("fdReportPerson",StringUtils.toString(fdReportPerson, eiMetadata.getMeta("fdReportPerson")));	
			map.put("fdHappenTime",StringUtils.toString(fdHappenTime, eiMetadata.getMeta("fdHappenTime")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdProblemPlace",StringUtils.toString(fdProblemPlace, eiMetadata.getMeta("fdProblemPlace")));	
			map.put("fdAccidentContent",StringUtils.toString(fdAccidentContent, eiMetadata.getMeta("fdAccidentContent")));	
			map.put("fdOverTime",StringUtils.toString(fdOverTime, eiMetadata.getMeta("fdOverTime")));	
			map.put("fdOffTime",StringUtils.toString(fdOffTime, eiMetadata.getMeta("fdOffTime")));	
			map.put("fdAccidentAffect",StringUtils.toString(fdAccidentAffect, eiMetadata.getMeta("fdAccidentAffect")));	
			
		return map;
	
	}
}